﻿using System;

namespace DisinfectClassRoom
{
    class Program
    {
        static void Main(string[] args)
        {
            // 初始化Receiver、Invoker和Command
            Receiver studentReceiver= new Receiver();
            Command command = new ConcreteCommand(studentReceiver);
            Invoker teacherInvoker = new Invoker(command);

            //通过调用者延迟执行命令
            teacherInvoker.ExecuteCommand();
            teacherInvoker.ExecuteCommand("不难");
        }
    }
}
